<template>
        <div class="box">
           <input type="text" :value="modelValue"  @input="emit('update:model-value',(<HTMLInputElement>$event.target).value)"/>
        </div>
</template>
<script setup lang="ts">
//接受props
defineProps(['modelValue'])
//声明事件
const emit = defineEmits(['update:model-value'])
</script>
<style scoped>

</style>